package cn.com.sbell.vss.ems.entity;

import cn.com.sbell.vss.BaseObject;

/**
 * @bean name="userRole"
 * @hibernate.class table="EMS_USER_ROLE"
 * @author Yifu.HUANG
 */
public class UserRole extends BaseObject {

	private String id;

	private String userId;

	private String areaId;

	private String roleId;

	//since v2.0
	private String domainId;

	/**
	 * @hibernate.id column="ID" generator-class="uuid.hex" length="32"
	 * @return
	 */
	public String getId() {
		return id;
	}

	/**
	 * @hibernate.property column="USER_ID" length="32" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @hibernate.property column="AREA_ID" length="300" not-null="true"
	 *                     unique="false"
	 */
	public String getAreaId() {
		return areaId;
	}

	/**
	 * @hibernate.property column="ROLE_ID" length="32" not-null="true"
	 *                     unique="false"
	 */
	public String getRoleId() {
		return roleId;
	}
	/**
	 * @hibernate.property column="DOMAIN_ID" length="32" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getDomainId() {
		return domainId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setUserId(String saId) {
		this.userId = saId;
	}

	public void setDomainId(String domainId) {
		this.domainId = domainId;
	}
}
